package com.gdou.taolele.product.feign;

import com.gdou.common.to.es.SkuEsModel;
import com.gdou.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author charles
 * @since 2021/4/15 10:41
 */

@FeignClient("taolele-search")
public interface SearchFeignService {

    @PostMapping("/search/save/product")
    public R saveProductAsIndices(@RequestBody List<SkuEsModel> skuEsModels);
}
